<div class="expenditureTypes view">
<h2><?php  __('Expenditure Type');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Expenditure Type Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $expenditureType['ExpenditureType']['expenditure_type_id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Description'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $expenditureType['ExpenditureType']['description']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Expenditure Type Source'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $expenditureType['ExpenditureTypeSource']['meaning']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Expenditure Type Periodicity'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $expenditureType['ExpenditureTypePeriodicity']['meaning']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('End Date'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $expenditureType['ExpenditureType']['end_date']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created By'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $expenditureType['ExpenditureType']['created_by']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $expenditureType['ExpenditureType']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Updated By'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $expenditureType['ExpenditureType']['updated_by']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Updated'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $expenditureType['ExpenditureType']['updated']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Expenditure Type', true), array('action' => 'edit', $expenditureType['ExpenditureType']['expenditure_type_id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Expenditure Type', true), array('action' => 'delete', $expenditureType['ExpenditureType']['expenditure_type_id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $expenditureType['ExpenditureType']['expenditure_type_id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Expenditure Types', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Expenditure Type', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Periodic Expenditure Types', true), array('controller' => 'periodic_expenditure_types', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('List Expenditure Distributions', true), array('controller' => 'expenditure_distributions', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('List Expenditures', true), array('controller' => 'expenditures', 'action' => 'index')); ?> </li>
	</ul>
</div>
	<div class="related">
		<h3><?php __('Related Periodic Expenditure Types');?></h3>
	<?php if (!empty($expenditureType['PeriodicExpenditureType'])):?>
		<dl>	<?php $i = 0; $class = ' class="altrow"';?>
			<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Periodic Expenditure Type Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $expenditureType['PeriodicExpenditureType']['periodic_expenditure_type_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Expenditure Type Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $expenditureType['PeriodicExpenditureType']['expenditure_type_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Period Type');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $expenditureType['PeriodicExpenditureType']['period_type'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Amount Type');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $expenditureType['PeriodicExpenditureType']['amount_type'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Due Date');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $expenditureType['PeriodicExpenditureType']['due_date'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Amount');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $expenditureType['PeriodicExpenditureType']['amount'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Building Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $expenditureType['PeriodicExpenditureType']['building_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created By');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $expenditureType['PeriodicExpenditureType']['created_by'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $expenditureType['PeriodicExpenditureType']['created'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Updated By');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $expenditureType['PeriodicExpenditureType']['updated_by'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Updated');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $expenditureType['PeriodicExpenditureType']['updated'];?>
&nbsp;</dd>
		</dl>
	<?php endif; ?>
		<div class="actions">
			<ul>
				<li><?php echo $this->Html->link(__('Edit Periodic Expenditure Type', true), array('controller' => 'periodic_expenditure_types', 'action' => 'edit', $expenditureType['PeriodicExpenditureType']['periodic_expenditure_type_id'])); ?></li>
			</ul>
		</div>
	</div>
	<div class="related">
	<h3><?php __('Related Expenditure Distributions');?></h3>
	<?php if (!empty($expenditureType['ExpenditureDistribution'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Expenditure Distribution Id'); ?></th>
		<th><?php __('Property Type Id'); ?></th>
		<th><?php __('Expenditure Type Id'); ?></th>
		<th><?php __('Coefficient'); ?></th>
		<th><?php __('Created By'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Updated By'); ?></th>
		<th><?php __('Updated'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($expenditureType['ExpenditureDistribution'] as $expenditureDistribution):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $expenditureDistribution['expenditure_distribution_id'];?></td>
			<td><?php echo $expenditureDistribution['property_type_id'];?></td>
			<td><?php echo $expenditureDistribution['expenditure_type_id'];?></td>
			<td><?php echo $expenditureDistribution['coefficient'];?></td>
			<td><?php echo $expenditureDistribution['created_by'];?></td>
			<td><?php echo $expenditureDistribution['created'];?></td>
			<td><?php echo $expenditureDistribution['updated_by'];?></td>
			<td><?php echo $expenditureDistribution['updated'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'expenditure_distributions', 'action' => 'view', $expenditureDistribution['expenditure_distribution_id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'expenditure_distributions', 'action' => 'edit', $expenditureDistribution['expenditure_distribution_id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'expenditure_distributions', 'action' => 'delete', $expenditureDistribution['expenditure_distribution_id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $expenditureDistribution['expenditure_distribution_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Expenditure Distribution', true), array('controller' => 'expenditure_distributions', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Expenditures');?></h3>
	<?php if (!empty($expenditureType['Expenditure'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Expenditure Id'); ?></th>
		<th><?php __('Building Id'); ?></th>
		<th><?php __('Expenditure Type Id'); ?></th>
		<th><?php __('Document Number'); ?></th>
		<th><?php __('Detail'); ?></th>
		<th><?php __('Amount'); ?></th>
		<th><?php __('Building Expenditure Type'); ?></th>
		<th><?php __('Party Name'); ?></th>
		<th><?php __('Payment Date'); ?></th>
		<th><?php __('Payment Method'); ?></th>
		<th><?php __('Invoice Number'); ?></th>
		<th><?php __('Forecast Year'); ?></th>
		<th><?php __('Forecast Month'); ?></th>
		<th><?php __('Created By'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Updated By'); ?></th>
		<th><?php __('Updated'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($expenditureType['Expenditure'] as $expenditure):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $expenditure['expenditure_id'];?></td>
			<td><?php echo $expenditure['building_id'];?></td>
			<td><?php echo $expenditure['expenditure_type_id'];?></td>
			<td><?php echo $expenditure['document_number'];?></td>
			<td><?php echo $expenditure['detail'];?></td>
			<td><?php echo $expenditure['amount'];?></td>
			<td><?php echo $expenditure['building_expenditure_type'];?></td>
			<td><?php echo $expenditure['party_name'];?></td>
			<td><?php echo $expenditure['payment_date'];?></td>
			<td><?php echo $expenditure['payment_method'];?></td>
			<td><?php echo $expenditure['invoice_number'];?></td>
			<td><?php echo $expenditure['forecast_year'];?></td>
			<td><?php echo $expenditure['forecast_month'];?></td>
			<td><?php echo $expenditure['created_by'];?></td>
			<td><?php echo $expenditure['created'];?></td>
			<td><?php echo $expenditure['updated_by'];?></td>
			<td><?php echo $expenditure['updated'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'expenditures', 'action' => 'view', $expenditure['expenditure_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Expenditure', true), array('controller' => 'expenditures', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
